package com.appjishu.web.biz.service.impl;

import com.appjishu.web.biz.dao.UserInfoMapper;
import com.appjishu.web.biz.service.IUserInfoService;
import com.appjishu.web.model.User;
import com.appjishu.web.model.UserInformation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserInfoServiceImpl implements IUserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public List<User> selectUserInfolist(User user) {
        return userInfoMapper.selectUserInfoMapper(user);
    }

    @Override
    public int deleteUserInfoByIds(Long[] ids) {
        return userInfoMapper.deleteUserInfoByIds(ids);
    }

    @Override
    public int updateUserInfo(User user) {
        return userInfoMapper.updateUserInfo(user);
    }

    @Override
    public List<UserInformation> getUserLog(Long userId) {
        List<UserInformation> userInformationsList = userInfoMapper.getUserLog(userId);
        return userInformationsList;
    }
}
